package team.pikachu.pikachuclient.utils;

/**
 * Created by Alex on 2017/9/15.
 */

public class IPConstants {
    private static final String IP = "http://106.14.214.2:8080";
    private static final String root = "/Pikachu_Service";
    public static final String ACCEPT = IP + root + "/troubleController/insert";
    public static final String SIGN_UP = IP + root + "/userController/insert";
    public static final String SIGN_IN = IP + root + "/userController/login";
    public static final String GET_SCHOOLS = IP + root + "/schoolController/getSchool";
    public static final String GET_LOCATIONS = IP + root + "/locationController/getLocationIdBySchoolId?schoolId=";
    public static final String GET_TROUBLES = IP + root + "/troubleController/selectTroubleByUser?userid=";

    public static String getDoing(int userId,int status) {
        return IP + root + "/troubleController/selectTroubleByWorker?userid="+ userId +"&op="+ status;
    }

    public static String updateStatus(int userId,int troubleid,int op){
        return IP + root + "/troubleController/update?userid="+ userId +"&op="+ op + "&troubleid=" + troubleid;
    }
}
